


#include <Timer.h>
#include "CausalChat.h"

configuration RcoC {
  provides interface Rco;
}
implementation {
  components LedsC;
  components new TimerMilliC() as Timer0;
  components ActiveMessageC;
  components new AMSenderC(AM_BLINKTORADIO);
  components new AMReceiverC(AM_BLINKTORADIO);
  components rco;

  //rco.Leds -> LedsC;
  //rco.Timer0 -> Timer0;
  rco.Packet -> AMSenderC;
  rco.AMPacket -> AMSenderC;
  rco.AMControl -> ActiveMessageC;
  rco.AMSend -> AMSenderC;
  rco.Receive -> AMReceiverC;

}
